Fravia's TOOLS OF OUR TRADE Messageboard ~ Moderated
Re: Actual EXE file decompiler :)
Tuesday, 23-Feb-99 15:31:06

REC

REC, a reverse engineering compiler by Giampiero Caprino, is a portable decompiler which supports a variety of
different input binary files and produces a C-like representation as output. Source processors supported at
present include: Intel 386, Motorola 68000, MIPS R3000 and Motorola PowerPC. Amongst the source binary file
formats accepted are: Unix Elf, Unix COFF, Windows PE, Linux and SunOS AOUT, PlayStation PS-X, and raw
binary data.

REC started as a workbench to test compiler related algorithms. His author, Giampiero Caprino, has worked on
this project on an on and off basis for several years and uses the Linux platform for development.

Some of the features of REC include:

Recognizes dynamically and statically linked functions like printf,
Recovers control structure information correctly,
Gets arguments to variable length routines such as printf correct,
Supports the information provided by the -g option, hence recovering correct names for all variables and
routines,
For each routine provides the name (if known), argument size, local variables size, and saved register size,
Generates good code.

The new version 1.4a includes HTML support at its user interface level, as well as a HTTP proxy server; users
can decompile programs remotely over the internet. An example server page is given at
http://www.aromatic.com/~cg/rec/cgiexamp/start.htm.

WH